import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/get_risk_object_by_id_entity.g.dart';

export 'package:enterprise_v6_app/generated/json/get_risk_object_by_id_entity.g.dart';

@JsonSerializable()
class GetRiskObjectByIdEntity {
  GetRiskObjectByIdEntity();

  factory GetRiskObjectByIdEntity.fromJson(Map<String, dynamic> json) => $GetRiskObjectByIdEntityFromJson(json);
  String? activationTime;
  String? address;
  int? checkType;
  List<GetRiskObjectByIdChildren>? children;
  int? closestDistance;
  String? companyCode;
  String? controlHead;
  String? controlHeadPhone;
  String? controlHeadPosition;
  String? createBy;
  String? createById;
  String? createDate;
  String? deleted;
  String? description;
  String? deviceAreaHazards;
  String? deviceId;
  List<GetRiskObjectByIdEquipVOList>? equipVOList;
  int? existDanger;
  int? existHomework;
  String? hazardCode;
  String? hazardDep;
  String? hazardDepId;
  String? hazardDistinguishDep;
  String? hazardDistinguishDepId;
  String? hazardDistinguishPerson;
  String? hazardDistinguishPersonId;
  String? hazardLiablePerson;
  String? hazardLiablePersonId;
  String? hazardRank;
  String? hazardType;
  String? deviceName;
  String? associatedProductionLine;
  String? hazardTypeName;
  String? id;
  int? inChemicalIndustrialPark;
  int? isKeynote;
  String? keyProcessesId;
  String? keyProcessesName;
  String? latitude;
  int? level;
  String? longitude;
  String? mainHead;
  String? mainHeadPhone;
  String? mainHeadPosition;
  int? numberEstimation;
  List<GetRiskObjectByIdObjectChildren>? objectChildren;
  String? objectRange;
  String? parkName;
  String? productionCapacity;
  String? riskObjectName;
  String? rvalue;
  int? status;
  String? tecHead;
  String? tecHeadPhone;
  String? tecHeadPosition;
  int? thereIsAnAlarmPresent;
  String? updateBy;
  String? updateById;
  String? updateDate;
  String? workType;

  Map<String, dynamic> toJson() => $GetRiskObjectByIdEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class GetRiskObjectByIdChildren {
  GetRiskObjectByIdChildren();

  factory GetRiskObjectByIdChildren.fromJson(Map<String, dynamic> json) => $GetRiskObjectByIdChildrenFromJson(json);
  int? checkType;
  List<GetRiskObjectByIdChildrenChildren>? children;
  String? companyCode;
  String? coordinate;
  String? createBy;
  String? createById;
  String? createDate;
  String? deleted;
  String? description;
  String? hazardCode;
  String? hazardDep;
  String? hazardDepId;
  String? hazardDistinguishDep;
  String? hazardDistinguishDepId;
  String? hazardDistinguishPerson;
  String? hazardDistinguishPersonId;
  String? hazardLiablePerson;
  String? hazardLiablePersonId;
  String? id;
  String? isDistribution;
  int? isUpload;
  String? latitude;
  int? level;
  String? longitude;
  String? riskObjectId;
  String? riskUnitName;
  int? status;
  int? taskNum;
  String? updateBy;
  String? updateById;
  String? updateDate;
  String? workType;

  Map<String, dynamic> toJson() => $GetRiskObjectByIdChildrenToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class GetRiskObjectByIdChildrenChildren {
  GetRiskObjectByIdChildrenChildren();

  factory GetRiskObjectByIdChildrenChildren.fromJson(Map<String, dynamic> json) => $GetRiskObjectByIdChildrenChildrenFromJson(json);
  int? checkType;
  String? companyCode;
  String? createBy;
  String? createById;
  String? createDate;
  int? currentRiskDegree;
  String? currentRiskLevel;
  String? damageTypeId;
  String? damageTypeIdName;
  String? dataSources;
  String? deleted;
  String? hazardCode;
  String? id;
  int? initialRiskConsequences;
  int? initialRiskDegree;
  String? initialRiskLevel;
  int? initialRiskPossibility;
  int? isUpload;
  int? level;
  String? riskDescription;
  String? riskEventName;
  String? riskObjectId;
  String? riskUnitId;
  int? status;
  String? updateBy;
  String? updateById;
  String? updateDate;
  String? warehouseId;
  String? workType;

  Map<String, dynamic> toJson() => $GetRiskObjectByIdChildrenChildrenToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class GetRiskObjectByIdEquipVOList {
  GetRiskObjectByIdEquipVOList();

  factory GetRiskObjectByIdEquipVOList.fromJson(Map<String, dynamic> json) => $GetRiskObjectByIdEquipVOListFromJson(json);
  String? alarmDevice;
  String? backupLinkAddress;
  String? buildDate;
  String? bypassSwitchTotalLocaleNo;
  String? chemicalProcessTypeDicId;
  String? chemicalProcessTypeDicIdLabel;
  String? companyCode;
  String? createBy;
  String? createById;
  String? createDate;
  String? deleted;
  int? designReserve;
  List<GetRiskObjectByIdEquipVOListDeviceDetectionList>? deviceDetectionList;
  String? deviceType;
  String? deviceTypeLabel;
  String? equipCode;
  String? equipDescribe;
  String? equipLevel;
  String? equipLevelLabel;
  String? equipName;
  String? equipStatus;
  String? equipTypeDicId;
  String? equipTypeDicIdLabel;
  GetRiskObjectByIdEquipVOListFilePath? filePath;
  int? floorArea;
  String? havePressurePipeline;
  String? hazardCode;
  String? hazardName;
  String? id;
  int? interlockingCount;
  String? ipAddress;
  String? ipBroadcastName;
  String? isBoiler;
  String? isPressureVessel;
  String? latitude;
  int? liquidLevel;
  String? longitude;
  String? mainSwitchStatusLocaleNo;
  String? maintenanceDate;
  String? manLinkAddress;
  String? medium;
  String? mediumStatusDicId;
  String? mediumStatusDicIdLabel;
  String? monitorGas;
  String? monitorGasLabel;
  String? monitorTypeDicId;
  String? monitorTypeDicIdLabel;
  String? parameterDesc;
  int? pressureDesign;
  int? pressureMax;
  String? pressureTypeDicId;
  String? pressureTypeDicIdLabel;
  String? ptInfo;
  int? rangeDown;
  int? rangeUp;
  int? reserves;
  String? riskObjectId;
  String? startDate;
  String? storeTypeDicId;
  String? storeTypeDicIdLabel;
  String? tankTypeDicId;
  String? tankTypeDicIdLabel;
  String? targetCode;
  String? targetName;
  String? targetType;
  int? temperatureMax;
  int? temperatureMin;
  String? temperatureTypeDicId;
  String? temperatureTypeDicIdLabel;
  int? thresholdDown;
  int? thresholdDown2;
  int? thresholdUp;
  int? thresholdUp2;
  String? unit;
  String? updateBy;
  String? updateById;
  String? updateDate;
  String? useDate;

  Map<String, dynamic> toJson() => $GetRiskObjectByIdEquipVOListToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class GetRiskObjectByIdEquipVOListDeviceDetectionList {
  GetRiskObjectByIdEquipVOListDeviceDetectionList();

  factory GetRiskObjectByIdEquipVOListDeviceDetectionList.fromJson(Map<String, dynamic> json) => $GetRiskObjectByIdEquipVOListDeviceDetectionListFromJson(json);
  String? checkResult;
  String? createBy;
  String? createById;
  String? createDate;
  String? deleted;
  String? detectionPerson;
  String? detectionTime;
  String? deviceId;
  String? filePath;
  List<dynamic>? filePathList;
  String? id;
  String? notes;
  String? updateBy;
  String? updateById;
  String? updateDate;

  Map<String, dynamic> toJson() => $GetRiskObjectByIdEquipVOListDeviceDetectionListToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class GetRiskObjectByIdEquipVOListFilePath {
  GetRiskObjectByIdEquipVOListFilePath();

  factory GetRiskObjectByIdEquipVOListFilePath.fromJson(Map<String, dynamic> json) => $GetRiskObjectByIdEquipVOListFilePathFromJson(json);

  Map<String, dynamic> toJson() => $GetRiskObjectByIdEquipVOListFilePathToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class GetRiskObjectByIdObjectChildren {
  GetRiskObjectByIdObjectChildren();

  factory GetRiskObjectByIdObjectChildren.fromJson(Map<String, dynamic> json) => $GetRiskObjectByIdObjectChildrenFromJson(json);
  String? id;
  String? name;

  /// 是否展开
  bool? isExpand = false;
  ///	子集
  List<GetRiskObjectByIdObjectChildren>? objectChildren = [];

  Map<String, dynamic> toJson() => $GetRiskObjectByIdObjectChildrenToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
